//automatic code generation
package com.aolong.archives.core.sysmanage.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.aolong.archives.common.resource.DataDictionaryUtil;
import com.rock.platform.entity.BaseEntity;

@Entity
@Table(name="tsm_role")
public class RoleEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Id
    private String roleId;
    private int type;
    private int status;
    private String roleCode;
    private String roleName;
    private String roleNameEn;

    @Transient
	private String typeDesc;
	
    @Transient
	private String statusDesc;

    public int getType() {
        return type;
    }
    public void setType(int type) {
        this.type=type;
    }
    public int getStatus() {
        return status;
    }
    public void setStatus(int status) {
        this.status=status;
    }
    public String getRoleId() {
        return roleId;
    }
    public void setRoleId(String roleId) {
        this.roleId=roleId;
    }
    public String getRoleCode() {
        return roleCode;
    }
    public void setRoleCode(String roleCode) {
        this.roleCode=roleCode;
    }
    public String getRoleName() {
        return roleName;
    }
    public void setRoleName(String roleName) {
        this.roleName=roleName;
    }
	public String getStatusDesc() {
		return DataDictionaryUtil.getInstance().getValue(this.getStatus(), "Status");
	}
	public String getTypeDesc() {
		return DataDictionaryUtil.getInstance().getValue(this.getType(), "RoleType");
	}
	public String getRoleNameEn() {
		return roleNameEn;
	}
	public void setRoleNameEn(String roleNameEn) {
		this.roleNameEn = roleNameEn;
	}
}